package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Accumulate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccumulateMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Accumulate record);

    Accumulate selectByPrimaryKey(Long id);

    List<Accumulate> selectAll();

    int updateByPrimaryKey(Accumulate record);

    Accumulate selectOrUser(Long id);

    void updateBalance(@Param("userId") Long userId, @Param("balance") Double balance);

    void updateBalanceRecharge(@Param("id") Long id, @Param("balance") Double balance);
}